import { Monitor } from '@/types/monitor';

export default function isMonitorOnline(monitor: Monitor): boolean {
  const curTime = new Date().getTime() / 1000;
  return curTime - monitor.mtime <= 10 * 60;
}
